﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Forecast.Domain.Implementation
{
    class AcceptOfferServiceFactory
    {
        public static IAcceptOffers GetAcceptOfferService(IOffer offer)
        {
            IAcceptOffers acceptOffers = null;
            if (offer is Buy)
                acceptOffers = new AcceptBuyOfferService();
            else if (offer is Sell)
                acceptOffers = new AcceptSellOfferService();
            return acceptOffers;
        }
    }
}
